<?php
/**
 * Created by PhpStorm.
 * User: 76587
 * Date: 2018-05-29
 * Time: 11:45
 */

namespace apis\base;


use yii\swoole\filter\Cors;
use yii\swoole\helpers\ArrayHelper;
use yii\swoole\rest\Controller;

class BaseController extends Controller
{
    public function behaviors()
    {
        return ArrayHelper::merge([
            'corsFilter' => [
                'class' => Cors::class
            ],
        ], parent::behaviors());
    }
}